package com.mycompany.app.hr.payroll.model;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


/**
 * from last month 23th to current month 22th
 * @author Shawn.guo
 *
 */
public class PayPeriod {
    
    private Long id;

    private String name;

    private String payCycle;

    private Date closingDate;

    private Date cutoffDate;

    private Date fiscalStartDate;

    private Date fiscalEndDate;

    private Date fiscalYearStartDate;

    private Date fiscalYearEndDate;

    private Date fromDate;

    private Date toDate;

//    private PayCalendar payCalendar;
    
    //=========================
    @Override
    public String toString() {

        return ToStringBuilder.reflectionToString(this,
                ToStringStyle.SHORT_PREFIX_STYLE);
    }
    //==========================

    public Long getId() {
    
        return id;
    }

    public void setId(Long id) {
    
        this.id = id;
    }

    public String getName() {
    
        return name;
    }

    public void setName(String name) {
    
        this.name = name;
    }

    public String getPayCycle() {
    
        return payCycle;
    }

    public void setPayCycle(String payCycle) {
    
        this.payCycle = payCycle;
    }

    public Date getClosingDate() {
    
        return closingDate;
    }

    public void setClosingDate(Date closingDate) {
    
        this.closingDate = closingDate;
    }

    public Date getCutoffDate() {
    
        return cutoffDate;
    }

    public void setCutoffDate(Date cutoffDate) {
    
        this.cutoffDate = cutoffDate;
    }

    public Date getFiscalStartDate() {
    
        return fiscalStartDate;
    }

    public void setFiscalStartDate(Date fiscalStartDate) {
    
        this.fiscalStartDate = fiscalStartDate;
    }

    public Date getFiscalEndDate() {
    
        return fiscalEndDate;
    }

    public void setFiscalEndDate(Date fiscalEndDate) {
    
        this.fiscalEndDate = fiscalEndDate;
    }

    public Date getFiscalYearStartDate() {
    
        return fiscalYearStartDate;
    }

    public void setFiscalYearStartDate(Date fiscalYearStartDate) {
    
        this.fiscalYearStartDate = fiscalYearStartDate;
    }

    public Date getFiscalYearEndDate() {
    
        return fiscalYearEndDate;
    }

    public void setFiscalYearEndDate(Date fiscalYearEndDate) {
    
        this.fiscalYearEndDate = fiscalYearEndDate;
    }

    public Date getFromDate() {
    
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
    
        this.fromDate = fromDate;
    }

    public Date getToDate() {
    
        return toDate;
    }

    public void setToDate(Date toDate) {
    
        this.toDate = toDate;
    }
    
}
